import regex

if __name__ == '__main__':
    pattern = r"(?<=\").*?(?=\")"
    findstr="\"Ins_"
    set=set();
    with open("C:\\Users\\DingMiaoBin\\Desktop\\资料\\临时\\ServicePMPQ05.java",'r',encoding="utf-8") as file :
        # while file.readline():
        linelist = file.readlines()
        for line in linelist:
            if line.__contains__("\"Ins_"):
                startPos=line.index(findstr)

                endPos=line.index("\"",startPos+1)
                # print(line[startPos+1:endPos])
                set.add(line[startPos+1:endPos])
        list=list(set)
        list.sort()
        for val in list:
            print(val)
